package controllers

import (
	"github.com/astaxie/beego"
	"golang-blog/models"
)

type MainController struct {
	beego.Controller
}

func (c *MainController) Get() {
	c.Data["TopicList"] = models.GetIndexTopic()
	c.Layout = "T.Layout.tpl"
	c.TplNames = "home.html"
}
